[test] Add test for Stmik loader

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

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

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