Finish with db relation tests. Closed #9