Added unittest for checkRequestMethod