Added tests for auto type registration.