Fixed scaffold generator so that it will pass on unchanged scaffolding.

added tests to prove that it wasn't calling none existent instance variables