Test for bounds checking
Test for bounds checking

- Prevent errors on database boundaries (0 and n-1)
- Improve test by checking for false return

yorickdewid/Quantica,yorickdewid/Quantica,yorickdewid/Quantica,yorickdewid/Quantica