put test code in test module, d'oh