Move function mocks to bootstrap instead of autoloader