PHOENIX-1099 Fix performance issues with unit tests. (Kyle Buzsaki)