fix(valid-types): type in the valid types

Changed 'rest' to 'test'. Also added a test for the valid types.