testsuite: Move test-alias to test-util

Move file so we can use the same file to test other functions from
libkmod-util.c
util: Add cleanup attribute
config: Use _cleanup_free_
util: use _cleanup_free_ on path_make_absolute_cwd()
testsuite: add basic test for getline_wrapped
util: Be OOM-safe and use _cleanup_free_
array: avoid duplicate code to reallocate
file: use _cleanup_free_
module: use _cleanup_free and remove useless call to free()