Added unit tests for type and cors