Updated Jasmine tests as per Anton's and Alex's suggestions.