fixed readme, add tests