modification in test file (filter.rs) (to_bytes functon removed)