Fixes test failures

This commit also:
 - fixes a way of requiring spec_helper and gem files
 - adds tmp dir creation before the test starts and deletion after the
   test ends
 - adds pry to Gemfile in development section