test improvements, and fix javascript test execution