added types tests

Added the test code for validating custom types.