Custom elements type checking tests rewritten