unit test append/prepend with and without dropdown