controller tests refactoring
controller tests refactoring
restoring jQuery stub after each test