Cleaned up ConvNDSpace refactoring, added 3 unit tests.