test: improve name of testcases
test: extract setup
test: fix a variable name
test: remove needless Object#dup
Unsupport integer as scale rate

Because in a case of rate, it's a float.
Support string for scale value as width
Support string for scale value as height