If somebody is looking for unit testing inside Keil for STM32, please look this example.
github.com/.../UnityKeilSTM32
This will be useful for people new to Test Driven Development. Also a help file is placed inside the git repository.
This has be adopted/extension from original document by Niall Cooling (blog.feabhas.com).
Also check github.com/.../blinky for more information.
I was able to get cmock to run with the project, did you ever find out why the hard fault was created on the simulator?