Added testing and final operation of api server