Added test which verifies that when multithreading is disabled exception as correctly handled by the kernel. Signed-off-by: Krzysztof Chruscinski <krzysztof.chruscinski@nordicsemi.no>