implemented var tests