fixed rubocop and re-added specs