Adds test for SpaceBeforeRule and fixes #182