implementing testapi endpoints