Added tests for visit policy and visitor.