Unit test with mock alredy done.