test for @polyfill
 - @polyfill can contain @host
 - some refactoring of scope application