Add negative tests for FromProtoPrefix

Change-Id: I28a6ecef103ca179d6c45a4384574228b5c2137c