Fixed jasmine tests

Jira-issue: WP-946