Added tests for, and fixed, ready hook
3.2.0