added test framework

Signed-off-by: Dominik Richter <dominik.richter@gmail.com>
added specs for list

Signed-off-by: Dominik Richter <dominik.richter@gmail.com>
added checks for rendering during selection to specs

Signed-off-by: Dominik Richter <dominik.richter@gmail.com>
bugfix: don't render the list if there is no item in it

Signed-off-by: Dominik Richter <dominik.richter@gmail.com>