fix rubocop and rainbow incompatibility issue.
adding specs for Emulation module