Added tests and validation on joinColumns being set before checking if its a composite key.