Using software architecture for code testing