Improvments of tests with exceptions handler
Added warning methods
Modified some exceptions in warnings