fix bug and add alias in spec_helper