Jasmine testing with values, elements, and functions