move test file to right place
fix up tests and add readme
test invalid usage