Test and function for straight check