reorganised test.py for easier modular testing (later into unittest) and added Box for PixelIterator