tests: Add failmalloc tests