Add a test for the tag lookup behaviour.