Add TestMagic_Close().

Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>