Added a setup test command
Removed useless test case
Make sure to clear opts related cache
Moved an import out to module level
Added a debug log on model class creation