wrote simple test for lastInsertId