Library functions no longer need objectToArray function.
Tests are now made with arrays instead of objects.
changed ofject to array
edited testcases