Api Definition with tests