Split into test functions.