Add rake test command
Split git clone and commit into separate methods