Unit tests at HTTP layer