badinput: trim white spaces

Signed-off-by: Masatake YAMATO <yamato@redhat.com>
units: prepare the way to add a test case triggering an infinite loop

A test case in a directory suffixed with .i are just skipped.
*.i directory can be used to store a unit test triggering an infinite loop.

Signed-off-by: Masatake YAMATO <yamato@redhat.com>