Typo
Refactored tests
Added entity for relations mapper test
Added automatic target entity mapping
Refactored databse SQL for tests