Fixing stubbing and checkbox test