Simple mock test library using RAII