add tests for main instance