add test on excetions