Testing resize function