test that the what parameter works as expected