Add memory leak tests for agnosticbin2

Change-Id: Ica0d7a9058774b5db48431621781678ce1bf34fe