implemented exception tests