fixing issue with bin/rails and fixed subsequent tests