added api create tests and implementation