etcdserver: add tests for TestApply