Fixed a bug in Code test. I was always creating the same code, not using the parameter