Starting to separate boundary representation into its own class, adding tests.