Fix namespaces

- Fix the namespace of a few top-level classes
- Fix bug in test that validates that Create and Insert are mutually
exclusive.