change top and bottom function arguments and add group by test case for it.

top(column, limit)
bottom(column, limit)