Wrote test and exception class to manage positions of the nodes in the backing array.