Rewritting some tests and adding tests for Request class