Implemented HEAD method. Created unit test to test HEAD method.