testing params is sending correctly