Unit Tests for Gateway