Added tests for generated methods