Wrote new end2end test for negative assertions.

Added new constructor to PrototypeImpl.