More unit tests and a $.hasData that works for JS objects too.