element tests refactor in favor of reuse. Fix for file paths issues with travis