In most cases, you can run a test cluster and use our cluster management facilities to set up the buckets according to your needs prior to running the unit tests. The mock provides much of our functionality to enable you unit test quickly locally, however there is no simple implementation possible for something like Spatial Views or N1QL, and thus it is not supported by the internal Mock.