wrote test to ensure categories defaults to empty array