added test rooms, refactored a little so that the filtering method parameter is accessible through the 'process' function