Split test cases up into more smaller individual functions