Create api unit tests