Fix style issues and improve error handling
Update the mpd save command test case