Fix get_boundary

Also, minimal tests for minimise and normalise