- Tests with empty arrays were added.
- Several errors was solved.

Signed-off-by: 80LevelElf <salahutd@gmail.com>