index is now main, why did tests work without this..