bugfix for setting the patch_r variable

added more comprehensive spec tests

added module fixtures as submodules