Add few tests, alter LastIndexOf(...) and FindLastIndex(...) functions.

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