Add functional tests for error cases (PUT 400)

Change-Id: I7dc9f00d0a1924b0fba014f9fa8f833216e21b6d
Add functional tests for error cases (POST 400)

Change-Id: Ie405eb25c6f07e4ebf97201ca7ec4e0a3a9c88dd
Merge "Add functional tests for error cases (PUT 400)"
Merge "Add functional tests for error cases (POST 400)"