WriteServiceHelper unit test