Tests for top and bottom