test10 :: add test for #8, a subdir is deleted

Signed-off-by: BlackEagle <ike.devolder@gmail.com>
testMem :: add valgrind check

Signed-off-by: BlackEagle <ike.devolder@gmail.com>
when creating file in missing directory, create directory, this resolves #8

Signed-off-by: BlackEagle <ike.devolder@gmail.com>
add test10 to the testsuite

Signed-off-by: BlackEagle <ike.devolder@gmail.com>