added a 'test-gem' function for easily testing and installing gems