added tests script
fixed rubocop errors :(