added tests for standalone state and export