Add test (first attempt at function mocking).