Add automatic tests