Fixed unit test.
400 response if SFP not available
400 response if JSON syntax not correct