updated tests and started the api