Reformatted some code and added a Tester file to actually verify onAfter (manually)