moved test /before