pop3: some misc update
move test code to test.cpp