add unit tests to generic types