[WIP] Test fixtures and functional tests