Added a few functional tests.

Added some tests, so you don't accidentally deploy a broken version.