Bug 906226 - Move shared test code to a single file. r=gwagner