Add test for anonymous scanner