implemented base filter and test case classes

made tests smarter