Added specs for tpn, tpn_investiation & user models

Added specs for tpn, tpn_investigation, user and patient_history models. User spec is half done. spec for testing the validation of email is raising connection error only in testing.This happens when we are trying to create a user and confirmation email is sent, i am working on it.