third part of ex7
- fixing some tests
- clean up ex2_reg a bit