Adding testing cases.
Adding ability to replace in arrays.