fixed tests better length existance check for last and findIndex