Add tests for Bound object

Also small changes and bug fix