recoded tests to use mockery::on