Fixed exception tests. Added common.py tests