After much misery the functional test properly pass