Modifying tests
Some fixes in aperture.py