fixed dropdown again. and wrote tests

Fixes #235