refactoring the code in Integration Unit Test-Marcelo Rojas

refactoring the code in integration Unit test 1