fix jasmine browser tests

remove tests based on old api. add simple tests for new api.

Jira-issue: WP-1284