added api tests