fix callback name in ajax
updated tests