Test class for JoinSqlBuilder

Added a test class for JoinSqlBuilde. Now it covers my use cases and
tests field name selection, table name selection and source and
destination where for left joins.