Testing generated methods()