fixing unit tests, adding introspection unit test