unit tests for inspect()