Ported 'NonPublicMethodWithTestAttributeIssue'.
Merge pull request #424 from TheCommieDuck/non-public

Ported 'NonPublicMethodWithTestAttributeIssue'.