Refactors some tests and begins tests for qc profiling