Updating pillbox tests with events

forgot to add tests with #311