added assert method that just raises an exception