social tests and devise patch