moved testAPI into rest folder