Fixed jasmine tests

Jira-issue: WP-886