fix tests, test to make sure var files are created