Handle single upper and single lower bounds and additional tests.

Handle single upper and single lower bounds and additional tests.