University runs earthquake tests to save lives and buildings