add check in jasmine test.