allow build_version to be None in tests

which often do not set a build version since it is irrelevant to what is being tested