Small refactor: automatically uses testchain based on Rails env