splitting main into main/test