Accept user-definded datasource when testing

CakePHP override 'ds' option in ClassRegistry::init when test mode is true.
This change keep user-defined option.

Test case added.