check to avoid calling deffered.defer during tests
got rid of wildcard import for forms