fixed rubocop offences
addedd test files
added test metadata