Initial apply function for simpletest