added a testall function