Add new test
Finalize main loop