test: refactored resize operation unit tests.
test: true values for resize test.
make jshint even happier.