Added unit tests for irv.py