Adds a test for the new introspect functionality

Makes sure we don't trigger loops. Also test we don't miss counters and stuff.