added test case and phar