Fixed jasmine tests

Jira-issue: WP-709