fixed tests to use autowiring