handling non POST requests + testcases