unit test fix

- branch off of `version-magic` with fixes to some unit test logic errors causing false-positive CI failures