Update throw errors

All tests for mixins
Use for-in for iterate object fields