added tests for NCubeTestWriter