match/case and a few tests