Fix task hooks
Add basic tests for Rex::Logger (close #484)