Unit tests

Added some tests.
Fixed broken VS2012 test project file (was referring to 2010 Npgsql project).