introduced rspec check suggested by @nik which highlighted problem with validations

added more rspec checks and modified validations to ensure passing