Test scale function