Tweak min size threshold based on cpantesters reports
Add bool options arg to new_state. Add SMopt_IS_TEST to give stable output for tests.