Fix cross-crate enum namespacing
Add some basic tests