Replaced require with require_once to stop duplicate function definitions when running Unit Tests