Add request parameters and some unit tests

Fix tab with 4 whitespaces