add specs to validate nil/empty attributes