lib lamp_requests test and refactor okay