adding ability to switch frequency for tests
changing test so frequency can be changed