Minor test improvements
Test invalid prepared statements