Add test
Add a callback to test asynchronous code
Use 'expect' BDD style
Fix some tests