Added another unit test for oscillators and fixed another minor logical error.