typo
Improve function type check
reformat
Add test to element creator/getter/setter