fixes for js testing