unit testing and out of bounds get fix