Ammending tests for Tavis

    Restoring Gemfile
    Fixed testing bug for 1.8.7
Moved #next_uid and #next_gid tests to new file