add tests and change urls to methods