Add main function
Add main function
Change to pytest style