Tests for var and std
Implement var and raise on std