Bug 14878: Tests - Create the branchcodes when needed