functions.py: add test for scale()
A few minor test updates/fixes after travis ran with python 2.6
How embarassing!