Speed up some slow tests in the unit test suite

Review at https://rbcommons.com/s/OpenH264/r/923/.