fixed join, some tests for join, fixed equality tests