fix imports
update test suite
put ``autocreate`` function into ``apps`` submodule