Add unit tests for type validator like those from before.