added unit testing for getItem