Improve test

Make some changes on test/ directory.

Summary:

* Change test structure
* Add tests for PrintValue()
  * string
  * function
* Run `apt-get update` on travis-ci