[ticket/12514] [WIP] Add tests for profile fields

This PR will add tests for different types of custom profile fields. Currently WIP, do not merge yet

[PHPBB3-12514](https://tracker.phpbb.com/browse/PHPBB3-12514)
Yes, some functions were using them from the global scope and causing errors since they weren't present/mocked yet.