Update tests (most changes related to interaction with Javascript libraries)