Add Before/After hooks and AssertThrows command