Added tests for common.py