refactor test code
Merge pull request #4 from cenkalti/test

refactor test code
Update README.md
make time function overrideable