add test for out-of-bounds error