all tests pass

I changed some things about the factories, these things are fixed in
current tests. The current tests can serve as a template for new tests