Testing listNodeAttributes, and implementing testArray method to test if an array had returned correctly.