[test] Add test for DSMI loader

Signed-off-by: Claudio Matsuoka <cmatsuoka@gmail.com>
[test] Add STIM loader test

Signed-off-by: Claudio Matsuoka <cmatsuoka@gmail.com>
Handle memory allocation errors in STIM loader

Signed-off-by: Claudio Matsuoka <cmatsuoka@gmail.com>