Add simple test code; change flush_size to integer type