final api test written for now