libct: Move sanity args checks from backends to frontend

Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
test: Clean out files before run

Signed-off-by: Pavel Emelyanov <xemul@parallels.com>