anchor.diff:      GCounter = create_snapshot(riak_dt_gcounter),
       ?assertEqual(0,riak_dt_gcounter:value(GCounter)),
       Ops = [],
  -    GCounter2 = update_snapshot(riak_dt_gcounter, GCounter, Ops),
  +    GCounter2 = update_snapshot(key, riak_dt_gcounter, GCounter, Ops),
       ?assertEqual(0,riak_dt_gcounter:value(GCounter2)).
   
   %% @doc Testing non-existing crdt
  
positive.code: materializer_error_invalidupdate_test() ->
      GCounter = create_snapshot(riak_dt_gcounter),
      ?assertEqual(0,riak_dt_gcounter:value(GCounter)),
      Ops = [{1,#operation{payload={decrement, actor1}}}],
      ?assertException(error, function_clause, update_snapshot(riak_dt_gcounter, GCounter, Ops)).
  
  -endif.
  
negative.code: 		{error, unexpected_format, LogEntry}
  	end.
  	
  -ifdef(TEST).
  
  %% @doc Testing gcounter with update log
  materializer_gcounter_withlog_test() ->
      GCounter = create_snapshot(riak_dt_gcounter),
      ?assertEqual(0,riak_dt_gcounter:value(GCounter)),
      Ops = [{1,#operation{payload = #payload{key=key, op_param=increment, actor=actor1}}}, 
      {2,#operation{payload =#payload{key=key, op_param=increment, actor=actor2}}}, 
      {3,#operation{payload =#payload{key=key, op_param=increment, actor=actor3}}}, 
      {4,#operation{payload =#payload{key=key, op_param={increment,3}, actor=actor4}}}],
      GCounter2 = update_snapshot(key, riak_dt_gcounter, GCounter, Ops),
      ?assertEqual(6,riak_dt_gcounter:value(GCounter2)).
  
  %% @doc Testing gcounter with empty update log
  