ENH: Added automatic tests