jsonly tests
refactor from archive