ZSS-242:
 * support dynamically change max rows/columns
 * modify test case