Add tests for pyc compilation

I've added tests for pyc compilation with tempfile (as mentioned in #114)