is_valid don't always revalidate the model. Added test also.
fix whitespace and coding style
update fixture for pgsql
resolve test errors
update naming of validated flag