Add tests for modulke existance and moduleRoot checking