Remove lastInsertId from tests as not supported by postgres