Bugfixes/assert raises