Manifold dimension of a causal set: Tests in conformally flat spacetimes