Fixed bug in noise test to allow for time window