Fixed lower boundary test by throwing exception

Added test for upper boundary exception