Added tests from class. remove, indexOf, sort/ed and swap methods added