Added api test

Ordered tests