Fixes wrong path in case test page is run standalone

Jira-issue: WP-1289