added exception tests