cleaned up UnionScan and added tests

also adjusted namespace in perf_regression/UnionScan.cpp