tests: remove the use of mock objects