simplify test()