Move tests inside a single method

Some code cleanup to existing tests - FilterTest and PreviewTest. Moved tests inside a single method in both classes since the individual tests did not required separate testing environments.