Added unit test for Method