Change methods for local variables.
Move require to the proper file.
Add require to files in order to allow running test with ruby command.