Make tests work outside source tree