Fixed bugs in buildinfo tests that prevented tests from passing on Linux / Travis.