fixes #11, move developer test code to separate module