Add unit tests on space implementations, and fix the code to pass the tests.
Add unit tests on BICs, and fix the implementation to pass them.