Added compilation and generation tests.