add test for bad key
add /select endpoint