Add test in php and js.