test: add Function#setStatic unit tests