test: add tests for key type inspect