tests and docs for $.data