Changed tests to use deepEqual instead of joining Arrays for equal.