fix read null bug, add dummy test for insertion