move ScriptCollection
namespace and reorganize tests