Add test for #count