added some test code and a test module