Refactor jasmine tests, fix bokchoy test.