better tests and fix typo in README