added relationship model with base tests