rewrite of checkfizzbuzz and tests for that function