Put test cases into separate functions