White box tests