Db: Fix lost array index in test case
Validator: Fix array to string conversion cause notice error

As of PHP 5.4: Converting an array to a string will now generate an E_NOTICE
level error, but the result of the cast will still be the string "Array".

@link http://php.net/manual/en/migration54.incompatible.php
Use Travis CI for continuous integration test