encode rspec test and functionality done.
decode rspec test and functionality done.