Refactored perf ui tests to seperate files and seperated ui perf functions.