Improve some asObject tests.