Mocks and tests for controllers
mocks and tests
array iteration fixed
removed unused using directives
fixed stylecops warnings
fix some resharper issues
small fixes