add a test for comparing entities created by new and create method.