Bugfix/running tests on built source

Fixes #1