chore(tests): split the functional tests

Fixes #1141.