Patch/stdgen regresions

Last commit only "Make unit tests assertions relative allowing them to pass independent…"