Added tests and updated R#/StyleCop settings.