tests and docs for $.dimensions and $.offset