Add support for tracking opens + tests

Adds tests for #5