Move tests to package, rename cli script to «main.py»