added a simple test code.