added a simple api test utility