testing writing gson to file