Added test for min val in build_table