qahw_api:test: Add changes to register for qas callback

Add changes to get notification to client when qas died.
Also fix memory leak issues.

Change-Id: I95a9e91bb6b288b7ce134a60fe650ed3afa78be4
4 files changed