implement getAllRowGetter

refator test code