Added unit-test tool for php method.