added some simple test code.