Added exception tests
Deep exception functions