Refactored helpers in test_core.py
Added tests for preview base