Added SimpleCov configuration
Added fix and additional specs for handling of empty arrays.