fix view tests, add import for models