added visitor testing

I would delete the comments in these tests since the tests themselves are already quite readable