Refactory functional tests, remove import in method style
(as it doesn't actually bring too much benefits)