isolated scope and tests