add auto run and tests