add bounds check test