update tests
more robusts test for plugin manager and foundation plugin