Add some tests for latice and dimensions
Fix toleranced dimension2