add some methods & tests to generic type