Codes spec updated

I have done changes to the codes_spec.rb using the Reusable Nucleon tests, Let me know know your review on it.