Improve performance for tests by swizzling assembly classes only once (#238)