added client unit tests for factories and patient