Refactored user unit tests into a separate file.