Fix composer.json to autoload functions
Fix Alert\all() bug preventing correct resolution values
Add function tests