Add a test for unknown pgns and fix for the bug