Added jasmine example, added wrapper function around the mock