extra tests and js fixes