The man decided to test his wife and wrote her a farewell letter