Fixed jasmine tests to work with modularized codebase [WP-1043]

Jira Issue: WP-1043