update test and mock service