Ensure tests are run against repository

Fixes #1