Fix Makefile. Fixed cookies. Fixed tests.