added tests for invalid selection bounds