Create and destroy of unit test context properly works

Signed-off-by: Gregor Jasny <gjasny@googlemail.com>