fixed bugs with jasmine test in Task View