add a test for the visitor