Add tests for checking preview image building