Added main testing support. Started with main module