Bugfix and unit test for Shock decomposition

Additionally, there seems to be something wrong with the preprocessor. Settings the shocks-option in shock_decomposition triggers an error that shocks is not allowed. See the attached unit test.