adding automatic tests