Testing the stubbing of class variables