Index: tests/post/getPages.php
===================================================================
--- tests/post/getPages.php	(revision 1219)
+++ tests/post/getPages.php	(working copy)
@@ -92,4 +92,40 @@
 		foreach ( $pages as $page )
 			$this->assertInstanceOf( 'WP_Post', $page );
 	}
+
+	/**
+	 * @ticket 20376
+	 */
+	function test_get_pages_meta() {
+		$posts = $this->factory->post->create_many( 5, array( 'post_type' => 'page' ) );
+		add_post_meta( $posts[0], 'some-meta-key', '0' );
+		add_post_meta( $posts[1], 'some-meta-key', '' );
+		add_post_meta( $posts[2], 'some-meta-key', '1' );
+
+		$this->assertEquals( count( get_pages( array(
+			'meta_key' => 'some-meta-key',
+			'meta_value' => '0',
+		) ) ), 1 );
+
+		$this->assertEquals( count( get_pages( array(
+			'meta_key' => 'some-meta-key',
+			'meta_value' => '1',
+		) ) ), 1 );
+
+		$this->assertEquals( count( get_pages( array(
+			'meta_key' => 'some-meta-key',
+		) ) ), 3 );
+	}
+
+	/**
+	 * @ticket 22389
+	 */
+	function test_wp_dropdown_pages() {
+		$posts = $this->factory->post->create_many( 5, array( 'post_type' => 'page' ) );
+
+		$matches = array();
+		preg_match_all( '#<option#', wp_dropdown_pages( 'echo=0' ), $matches );
+
+		$this->assertEquals( count( $matches[0] ), 5 );
+	}
 }
\ No newline at end of file
