tests: Clean up initialization of Error *err variables