Implemented tests for the handling of empty arrays