CFY-606 fix plugin installer and added more tests for agent installer