tests: Add shared_mem test

Change-Id: I5b63d7595edfc2f79f206ae3f5199e1252ec062c