Complete phantomas API unit test