Add tests for recursive hasOne and hasMany mappings. Fix issue, that could lead to endless recursion.