Introspection functions

tests for some of the introspection functions