Test exceptions behavior

Cover basic exceptions scenario. 
#6