Use the unittest module so that the tests will run when executing 'python preload_test.py'
Make it easier to use preload.py as a module instead of the main python script
Merge pull request #1 from fzzzy/master

Small changes, r=yurenju