SOL-20 Adding Jasmine test, small code change/fix