added some test code.