Adding account controller test; refactor security config to use autowire