Added validations and fixed require in spec helper