bugfix in test()