small fixes and more jasmine specs