Add real test for check-type and remove unit tests.