Add tests, update comments and json to match the success/error name change.