added tests for types methods