Implement test to make sure type is only valid when given as a string