added tests for deffetch and defputback