Added custom tests.
IndexOutOfBonds prevention added