Tests for helper methods