Add unit tests for setup.py helper functions