Implementing tests and request validity