made unit tests compatible with ie8