Renaming validate to validate-ordering.
Adding some failing tests for type
add support for 'type'