Added tests for strongly typed cursor and query (relates to #2)