jasmine.Form whenClose returns a promise which is resolved when the form is closed (from jasmine.specs)