Add tests for named module definitions