add version option, fix dependencies
update test case