refactored and added spec (but it fails)

I added some tests to make sure that !temp works.