add gems for debugging
fix stack overflow error and reorganize requires in spec_helper