Added tests for more casting functions