First aborted attempt to get tests working..
Added some tests + fixed problem where ready was called twice (and early).
Merge pull request #5 from tmeasday/test

Fix multiple ready() call