Fixed bug in show alias matching. Added unit test