add test case for wal methods.