added boilerplate to be able to run tests from anywhere

Before sys.path was not the same as the default configuration if tests were run from different places as getcwd().
Now instead they are consistently as the normal web2py environment. Everyone creating new tests files from those stubs will incur in no issues.

Added test for validate_and_insert() too.