Changed test.js to include 'after' hook