input_has_samples: refactoring, add testcase for disabled