Fixed test warning, added negative value test and failure to fn agm