Memmory fixes, Server protocol parser unit test