fleshing out js tests for local_compact
fleshed out tests of local_compact