agnosticbin3: Fix memory leaks in tests

Change-Id: Ia79c3364a77542f6cc24c38159e4660089f972d9
kmsbufferinjector: Release resources

Change-Id: Iedbac4d736d79f9ef7d3a93e60a58537c88387a9