Fix all unit tests

After this change we have a clean BE version with all regression tests in place.