Fix, forgot the $test_cat argument to the function