Fix mac signature method
Add test for server mac with payload and without app