test added and passed (get, put, delete requests tested) + some optimization