Add tests for var (#26)