check that only plain objects get inserted