Modified enqueue_scripts
Return WP_Error objects on failure
Updated unit tests to reflect