Add CommitFromEnv tests, update Railtie