Added support for spy with attributes filtering