Fixed some testing issues (most important: testing now works consistently on Chrome, by waiting for all test to load