Created test class for testing of ArrayAdv.
Refactored join procedure of ArrayAdv