added tests/ folder and a test for bounds
fixed issue with lower bound not being respected