Add tests for appending to empty arrays