Don't set active page position to relative
Add memory leak test
Simplify memory cleanup
Add event tests