Tests for pie