Server Units Test, JSON error handling

Server no longer crashes on improper JSON formatting