added get single item function and tests