add test_to_list

besides the tests fixed a issue with the casting in the common_methods
struct.
Add test tools. Closes Test 'to_list' #1
Merge branch 'dev'