added breaking test
updated the test a little
removed lingering diff markup
refactored with @jugglinmike's suggestions
removed unnecessary function expressions
Merge pull request #267 from tbranyen/afterrender-test

Edge case bug with `afterRender`.