Fixes tests (namespace and expected exception)