Added sampling_interval handling to mock backend.
Reverting a recently-changed test case.