added more endpoints and tests