Add tests for dynamic plugin