mreging qunit into test folder
updaing tests, helpers, fixing broken tests, fixing bugs, added flatten