Add functional tests to people block plugin. Fix issues related to people block plugin