Fix load error when used in spec testing.
Merge pull request #3 from nanliu/loaderror

Fix load error when used in spec testing.