adding exception when testing