hacky fix of js errors in test