added type information in the test code.