raising exceptions properly
Fixed the assertError not being raise issue