Added tests for personmanager