Some fixes in aperture.py
Temporary removal of error and mask tests