allow in-source testing (fixes #23)