Add some tests for Polyglot