add arity to test-var that accepts a test environment