Tests and js perfect