Adds test for afterLoad hook