Preparing an Api test.