Bugfixing

Jira-issue: WP-709
Modified jasmine test

Jira-issue: WP-709